<template>
  <el-row class="tac">
  <el-col :span="24">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-submenu index="1">
        <template slot="title">
          <span>衣服</span>
        </template>
        <el-menu-item-group>
          <template slot="title">季节分区</template>
          <el-menu-item index="1-1">春夏季</el-menu-item>
          <el-menu-item index="1-2">秋冬季</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <span>鞋子</span>
        </template>
        <el-menu-item-group>
          <template slot="title">舒适度</template>
          <el-menu-item index="1-1">运动鞋</el-menu-item>
          <el-menu-item index="1-2">其他</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-menu-item index="3">
        <span slot="title">导航三</span>
      </el-menu-item>
      <el-menu-item index="4">
        
        <span slot="title">导航四</span>
      </el-menu-item>
      <el-menu-item index="5">
        
        <span slot="title">导航五</span>
      </el-menu-item>
      <el-menu-item index="6">
        
        <span slot="title">导航六</span>
      </el-menu-item>
      <el-menu-item index="7">
        
        <span slot="title">导航七</span>
      </el-menu-item>
      <el-menu-item index="8">
        
        <span slot="title">导航八</span>
      </el-menu-item>
      <el-menu-item index="9">
        
        <span slot="title">导航九</span>
      </el-menu-item>
      <el-menu-item index="10">
        
        <span slot="title">导航十</span>
      </el-menu-item>
      <el-menu-item index="11">
        
        <span slot="title">导航十一</span>
      </el-menu-item>
      <el-menu-item index="12">
        
        <span slot="title">导航十二</span>
      </el-menu-item>
    </el-menu>
  </el-col>
</el-row>
</template>

<script>
export default {
    name:'myMenu',
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
}
</script>

<style>
  .menu-left {
      padding-left: 80px; /* 调整菜单项的宽度 */
    }
</style>